package easy;

public class Solution_344 {
    public void reverseString(char[] s) {
        if (s.length<2) {
            return;
        }
        char c;
        int length = s.length/2;
        for (int i = 0; i < length; i++) {
            c = s[i];
            s[i] = s[s.length-i-1];
            s[s.length-i-1] = c;
        }
    }

    public static void main(String[] args) {
//        System.out.println(isPowerOfFour(5));
    }
}
